import request from '@/utils/request'

// 查询商家列表
export function listBusiness1(query) {
  return request({
    url: '/business/business/list',
    method: 'get',
    params: query
  })

}

// 查看待办事项
export function listBusiness() {
  return request({
    url: '/activiti/activiti/getUserTaskList',
    method: 'get',
  })


}

// 开始流程
export function merchantreview() {
  return request({
    url: '/activiti/activiti/merchantreview',
    method: 'get',
  })
}
// 开始退款流程
export function cuserantreview() {
  return request({
    url: '/activiti/cuseractiviti/cuserantreview',
    method: 'get',
  })
}
// 查看待办事项
export function getUserTaskList() {
  return request({
    url: '/activiti/activiti/getUserTaskList',
    method: 'get',
  })
}
// 查看详情
export function getBusinessInfo(taskId) {
  return request({
    url: '/activiti/activiti/getBusinessInfo/?taskId='+taskId,
    method: 'get',

  })
}
// 管理员审核通过
export function adminexamine(taskId,success) {
  return request({
    url: '/activiti/activiti/adminexamine/?taskId='+taskId+"&success="+success,
    method: 'get',

  })
}
// 管理员审核退款通过
export function adminrantreview(taskId,success) {
  return request({
    url: '/activiti/cuseractiviti/adminrantreview/?taskId='+taskId+"&success="+success,
    method: 'get',

  })
}
// 财务员审核通过
export function financeexamine(taskId,success) {
  return request({
    url: '/activiti/activiti/financeexamine/?taskId='+taskId+"&success="+success,
    method: 'get',

  })
}

